<template>
  <div class="search-content">
    <div class="logo-wrap">
      <img src="../assets/logo.png">
    </div>
    <search-bar @search='searchAnswer'></search-bar>
    <div class="rec-wrap">
      <div v-for="(item, index) in recArr" :key="index">
        <span>•</span>
        <span style="margin-left: 6px;">{{item}}</span>
      </div>
    </div>
  </div>
</template>

<script>
import SearchBar from './SearchBar.vue'
export default {
  components: { SearchBar },
  data () {
    return {
      recArr: [
        '汽车打不着火故障分析',
        '汽车打不着火故障分析',
        '汽车打不着火故障分析',
        '汽车打不着火故障分析'
      ]
    }
  },
  methods: {
    searchAnswer(searchStr) {
      this.$router.push({
        path: 'search',
        query: {
          searchStr: searchStr
        },
      })
    }
  }
}
</script>

<style scoped lang='less'>
.search-content {
  width: 100%;
  height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.logo-wrap {
  margin-top: 140px;
}
.input-wrap {
  display: flex;
  margin-top: 40px;
}
.input-area {
  width: 674px;
  height: 40px;
  padding: 10px 10px 10px 30px;
  background: #F6F6F6;
  border-radius: 30px 0 0 30px;
  box-shadow: 0 4px 4px #afafaf;
  display: flex;
  align-items: center;
}
/deep/ .el-input__inner {
  background-color: #f6f6f6 !important;
  border: none !important;
  font-size: 16px;
}
.jump-wrap {
  width: 66px;
  height: 60px;
  background-color: #4394EE;
  box-shadow: 0 4px 4px #afafaf;
  border-radius: 0 30px 30px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.rec-wrap {
  width: 550px;
  height: 100px;
  font-size: 18px;
  color: #6B6B6B;
  margin-top: 80px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

</style>
